{% extends 'main_frame.html' %}

{% block content %}
{% if authority==null %}
<div id="main" style="width: 100%;height:600px; background: #fff;">
	<div class="main">
		<p><img src="../images/index.png"></p>
		<p class="main_ctext">欢迎登录贝乐ERP系统</p>
		<p class="main_etext"> Best Learning   Best Future</p>
	</div>
</div>
{% else %}
<div id="mainindex">
	<div class="main_count">
		<p class="main_cont_left">欢迎登录贝乐ERP系统</p>
		<p class="main_cont_right">数据更新时间：<span></span><i class="layui-icon layui-icon-refresh"></i></p>
	</div>
	<div class="layui-row contents">
        <!--左边-->
		<div class="layui-col-md8">		
			
		{% for item in authority_left %}
		   <!--消息列表-->
		       {% if item.title=='消息列表' %}
			   <div class="layui-fluid attendance">
		  			<div class="main-title"><span class="index-moddle-title">消息列表</span><div class="layui-btn layui-btn-xs newbtnleft reads">一键全读</div><div class="layui-btn layui-btn-xs newbtnleft layui-btn-warm" id="showunread">只显未读</div></div>
	  			
	  				<!--表-->
	  				<div class="tablenews">
		  				<table class="layui-hide" id="LAY_table_news" lay-filter="LAY_table_news">
		  					
		  				</table>
					</div>
					
		  		</div>
		  		{% endif %} 
			<!--消息列表-->
			<!--市场信息-->
			{% if item.title=='市场信息' %}
	  		<div class="layui-fluid leades" data-name="leades">
	  			<div class="main-title"><span class="index-moddle-title">市场信息</span></div>
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="{{ sub.title }}">{{ sub.title }}</span>
			  						{% if sub.children[0].type==5 %}
			  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
			  							<div class="stime"></div>
			  							<div class="stend"></div>
			  						</a>
			  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div> 
	  		{% endif %}     
	       <!--市场end-->
		   
		   <!--销售信息-->
		   {% if item.title=='销售信息' %}
	        <div class="layui-fluid sell" data-name="sell">
	  			<div class="main-title"><span class="index-moddle-title">销售信息</span></div>
  				<!--查询-->
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="{{ sub.title }}">{{ sub.title }}</span>
			  						{% if sub.children[0].type==5 %}
			  						<a href="javascript:;" class="quick-btn" data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
			  							<div class="stime"></div>
			  							<div class="stend"></div>
			  						</a>
			  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div>
	  		{% endif %}       
	       <!--销售信息end-->


	       <!--教务信息-->
	       {% if item.title=='教务信息' %}
	        <div class="layui-fluid class" data-name="class">
	  			<div class="main-title"><span class="index-moddle-title">教务信息</span></div>
  				<!--查询-->
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="{{ sub.title }}">{{ sub.title }}</span>
			  						{% if sub.children[0].type==5 %}
			  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
			  							<div class="stime"></div>
			  							<div class="stend"></div>
			  						</a>
			  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div>
	  		{% endif %}   
	        <!--教务信息end-->
			

	        <!--财务信息-->
	        {% if item.title=='财务信息' %}
	         <div class="layui-fluid daily" data-name="daily">
	  			<div class="main-title"><span class="index-moddle-title">财务信息</span></div>
  				<!--查询-->
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="新增leades">{{ sub.title }}</span>
			  					{% if sub.children[0].type==5 %}	
		  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
		  							<div class="stime"></div>
		  							<div class="stend"></div>
		  						</a>
		  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div> 
	  		{% endif %}         
	        <!--财务信息end-->
			<!--物资信息 start-->
		 	{% if item.title=='物资信息' %}
	         <div class="layui-fluid material" data-name="material" style="display:block;">
	  			<div class="main-title"><span class="index-moddle-title">物资信息</span></div>
  				<!--查询-->
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="新增leades">{{ sub.title }}</span>
			  					{% if sub.children[0].type==5 %}	
		  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
		  							<div class="stime"></div>
		  							<div class="stend"></div>
		  						</a>
		  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div> 
	  		{% endif %} 
			<!--物资信息end-->
			<!--学员预警 start-->
		 	{% if item.title=='学员预警' %}
	         <div class="layui-fluid warning" data-name="warning" style="display:block;">
	  			<div class="main-title"><span class="index-moddle-title">学员预警</span></div>
  				<!--查询-->
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="">{{ sub.title }}</span>
			  					{% if sub.children[0].type==5 %}	
		  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
		  							
		  						</a>
		  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div> 
	  		{% endif %} 
			<!--学员预警end-->
			<!--班级课程表-->
			   {% if item.title=='班级课程表' %}
		       <div class="layui-fluid attendance">
		  			<div class="main-title"><span class="index-moddle-title">班级课程表</span>
		  				{% for sub in item.children %}
			  				{% if sub.title=='查看详情'%}
				  			<span class="table-more-all quick-btn" data-start="attend_date_start" data-end="attend_date_end" data-name="班级考勤及进度" data-where=""  data-event=""  data-url="/educationManage/classAttendance">查看详情>
				  				<div class="stime"></div>
				  				<div class="stend"></div>
				  			</span>
				  			{% endif %}
	  					{% endfor %}	
		  			</div>
		  			<div class="attendance-week">
		  					<ul class="weekul">
		  						<li><p><span>周一</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周二</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周三</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周四</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周五</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周六</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周日</span><span class="weekdate"></span></p></li>
		  					</ul>
		  					<div class="week-leftbtn">
		  						<i class="layui-icon layui-icon-left"></i>
		  					</div>
		  					<div class="week-rightbtn">
		  						<i class="layui-icon layui-icon-right"></i>
		  					</div>
		  				</div>
		  				<!--表-->
		  				<table class="layui-hide" id="LAY_table" lay-filter="LAY_table"></table>
		  					<script type="text/html" id="barDemo">
		  				{% for sub in item.children %}
			  				{% if sub.title=='考勤'%}
						
								<a class="layui-btn layui-btn-xs btn_show_kq" lay-event="attendance">考勤</a>	
							
							{% endif %}
	  					{% endfor %}	
	  					</script>

		  		</div>
		  		{% endif %}
		     <!--班级课程表end-->
		    <!--试听课程表-->
		    {% if item.title=='试听课程表' %}
		      <div class="layui-fluid lesson">
		  			<div class="main-title">
		  				<span class="index-moddle-title">试听课程表</span>
		  				<div class="stking1">
			  				
			  				{% for sub in item.children %}
				  				{% if sub.title=='查看详情'%}
				  				<div class="table-more-all quick-btn" data-start="tc_date_start" data-end="tc_date_end" data-name="试听课" data-where=""  data-event=""  data-url="/activityManage/auditionClass">查看详情>
					  				<div class="stime"></div>
					  				<div class="stend"></div>
					  			</div>
					  			{% endif %}
				  			{% endfor %} 
				  			<div class="layui-btn layui-btn-xs " id="invitation">只显邀约</div>
				  		</div>
		  			</div>
		  			<div class="attendance-week">
		  					<ul class="weekul">
		  						<li><p><span>周一</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周二</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周三</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周四</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周五</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周六</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周日</span><span class="weekdate"></span></p></li>
		  					</ul>
		  					<div class="week-leftbtn">
		  						<i class="layui-icon layui-icon-left"></i>
		  					</div>
		  					<div class="week-rightbtn">
		  						<i class="layui-icon layui-icon-right"></i>
		  					</div>
		  				</div>
		  				<!--表-->
		  				<table class="layui-hide" id="LAY_table_lesson" lay-filter="LAY_table_lesson"></table>
						<script type="text/html" id="barDemolesson">
							{% for sub in item.children %}
								{% if sub.title=='查看签到'%}
				  					<a class="layui-btn layui-btn-xs layui-bg-orange" lay-event="view">查看签到</a>
					  			{% endif %}
					  			{% if sub.title=='添加学员'%}
					  				<a class="layui-btn layui-btn-xs " lay-event="add">添加学员</a>
					  			{% endif %}
				  			{% endfor %} 
						</script>		

		  		</div>
		  		{% endif %}
		    <!--试听课程表end-->
		       <!--快捷操作-->
			{% if item.title=='快捷操作' %}
			<div class="layui-fluid fast">
	 			<div class="main-title"><span class="index-moddle-title">快捷操作</span></div>
	 			<div class="layui-row layui-col-space10 main-modules">
					{% for sub in item.children %}
	  				   {% if sub.type==3 %}
	  				   		<div class="layui-col-md4">
	  				   		<a href="javascript:;" class="quick-btn" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}"><div class="grid-demo kmodules"><p class="kmodules-img"><i class="layui-icon layui-icon-user"></i></p><p class="kmodules-text" title="{{ sub.title }}">{{ sub.title }}</p></div> </a></div>
	  				   {% endif %}
	  				{% endfor %}   
				</div>
				
			</div>
			{% endif %}
			<!--快捷操作end-->
			
			<!--所属区域概况-->
			{% if item.title=='所属区域概况' %}
			<div class="layui-fluid area">
	 			<div class="main-title"><span class="index-moddle-title">所属区域概况</span></div>
	 			<div class="layui-row layui-col-space10 main-modules">
					{% for sub in item.children %}
	  				   {% if sub.type==4 %}
	  				   		<div class="layui-col-md6">
	  				   			<div class="grid-demo modules-area"> <p class="modules-area-img"><i class="layui-icon layui-icon-username"></i><span class="modules-area-name">{{ sub.title }}</span></p><p class="modules-area-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></p></div></div>
	  				   {% endif %}
	  				{% endfor %}  
				</div>
				
			</div>
			{% endif %}
			<!--所属区域概况end-->
			<!--我的漏斗Tmk-->
			{% if item.title=='图表-TMk' %}
			<div class="layui-fluid tmk" data-name="tmk">
	 			<div class="main-title"><span class="index-moddle-title">图表-TMk</span></div>
	 				<div class="chart-search">
			       	   	<div class="chart-search-top">
				       	   	<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<button class="btn">查询</button>
			       	   </div>
			       	   	<div class="main-allbtn-left">
						 	<button  class="btnactive" data-time="today">今天</button> 
							<button data-time="yesterday">昨天</button> 
							<button data-time="week">本周</button> 
							<button data-time="month">本月</button>  
						</div>
						<div class="tmktu" style="margin-left: 10%;"></div>
	 				</div>

			</div>
			{% endif %}
			<!--我的漏斗tmk end-->
			<!--我的漏斗Tmk-->
			{% if item.title=='图表-课程顾问' %}
			<div class="layui-fluid sale" data-name="sale">
	 			<div class="main-title"><span class="index-moddle-title">图表-课程顾问</span></div>
	 				<div class="chart-search">
			       	   	<div class="chart-search-top">
				       	   	<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<button class="btn">查询</button>
			       	   </div>
			       	   	<div class="main-allbtn-left">
						 	<button  class="btnactive" data-time="today">今天</button> 
							<button data-time="yesterday">昨天</button> 
							<button data-time="week">本周</button> 
							<button data-time="month">本月</button>  
						</div>
						<div class="tmktu" style="margin-left: 10%;"></div>
	 				</div>

			</div>
			{% endif %}
			<!--我的漏斗tmk end-->

			{% endfor %}
	  		     

	       
	       
		</div>
       <!--右边-->
		<div class="layui-col-md4 right4">
		{% for item in authority_right %}
	      <!--消息列表-->
		       {% if item.title=='消息列表' %}
			   <div class="layui-fluid attendance">
		  			<div class="main-title"><span class="index-moddle-title">消息列表</span><div class="layui-btn layui-btn-xs newbtnleft reads">一键全读</div><div class="layui-btn layui-btn-xs newbtnleft layui-btn-warm" id="showunread">只显未读</div></div>
	  			
	  				<!--表-->
	  				<div class="tablenews">
		  				<table class="layui-hide" id="LAY_table_news" lay-filter="LAY_table_news">
		  					
		  				</table>
					</div>
					
		  		</div>
		  		{% endif %} 
			<!--消息列表-->
			<!--市场信息-->
			{% if item.title=='市场信息' %}
	  		<div class="layui-fluid leades" data-name="leades">
	  			<div class="main-title"><span class="index-moddle-title">市场信息</span></div>
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="{{ sub.title }}">{{ sub.title }}</span>
			  						{% if sub.children[0].type==5 %}
			  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
			  							<div class="stime"></div>
			  							<div class="stend"></div>
			  						</a>
			  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div> 
	  		{% endif %}     
	       <!--市场end-->
		   
		   <!--销售信息-->
		   {% if item.title=='销售信息' %}
	        <div class="layui-fluid sell" data-name="sell">
	  			<div class="main-title"><span class="index-moddle-title">销售信息</span></div>
  				<!--查询-->
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="{{ sub.title }}">{{ sub.title }}</span>
			  						{% if sub.children[0].type==5 %}
			  						<a href="javascript:;" class="quick-btn" data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
			  							<div class="stime"></div>
			  							<div class="stend"></div>
			  						</a>
			  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div>
	  		{% endif %}       
	       <!--销售信息end-->


	       <!--教务信息-->
	       {% if item.title=='教务信息' %}
	        <div class="layui-fluid class" data-name="class">
	  			<div class="main-title"><span class="index-moddle-title">教务信息</span></div>
  				<!--查询-->
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="{{ sub.title }}">{{ sub.title }}</span>
			  						{% if sub.children[0].type==5 %}
			  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
			  							<div class="stime"></div>
			  							<div class="stend"></div>
			  						</a>
			  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div>
	  		{% endif %}   
	        <!--教务信息end-->
			

	        <!--财务信息-->
	        {% if item.title=='财务信息' %}
	         <div class="layui-fluid daily" data-name="daily">
	  			<div class="main-title"><span class="index-moddle-title">财务信息</span></div>
  				<!--查询-->
	  			<div class="main-allbtn">
	  				<div class="main-allbtn-left">
					  <button  class="btnactive" data-time="today">今天</button> 
					  <button data-time="yesterday">昨天</button> 
					  <button data-time="week">本周</button> 
					  <button data-time="month">本月</button> 
					</div>
					<div class="main-allbtn-right">
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required" >
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<div class="layui-input-inline main-data">
							<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
							<i class="layui-icon layui-iconPosi">&#xe637;</i>
						</div>
						<button class="btn">查询</button>
					</div>
	  			</div>
	  			<!--查询显示-->
	  			<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="新增leades">{{ sub.title }}</span>
			  					{% if sub.children[0].type==5 %}	
		  						<a href="javascript:;" class="quick-btn"  data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
		  							<div class="stime"></div>
		  							<div class="stend"></div>
		  						</a>
		  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div> 
	  		{% endif %}         
	        <!--财务信息end-->
 			<!--物资信息-->
		   {% if item.title=='物资信息' %}
	        <div class="layui-fluid material" data-name="material" style="display:block;">
	  			<div class="main-title"><span class="index-moddle-title">物资信息</span></div>
  				<div class="layui-row layui-col-space10 main-modules">
	  				{% for sub in item.children %}
	  				   {% if sub.type==2 %}
	  					<div class="layui-col-md4 ">
		  					<div class="grid-demo">
			  					<div class="moudule-title bg0">
			  						<span title="{{ sub.title }}">{{ sub.title }}</span>
			  						{% if sub.children[0].type==5 %}
			  						<a href="javascript:;" class="quick-btn" data-start="{{ sub.date_start }}" data-end="{{ sub.date_end }}" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}">详情&gt;
			  							<div class="stime"></div>
			  							<div class="stend"></div>
			  						</a>
			  						{% endif %}
			  					</div>
			  					<div class="moudule-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></div> 
		  					</div>
	  					</div>
	  					{% endif %}
	  				{% endfor %}
				</div>
				
	  		</div>
	  		{% endif %}       
	       <!--物资信息end-->

			<!--班级课程表-->
			   {% if item.title=='班级课程表' %}
		       <div class="layui-fluid attendance">
		  			<div class="main-title"><span class="index-moddle-title">班级课程表</span>
		  				{% for sub in item.children %}
			  				{% if sub.title=='查看详情'%}
				  			<span class="table-more-all quick-btn" data-start="attend_date_start" data-end="attend_date_end" data-name="班级考勤及进度" data-where=""  data-event=""  data-url="/educationManage/classAttendance">查看详情>
				  				<div class="stime"></div>
				  				<div class="stend"></div>
				  			</span>
				  			{% endif %}
	  					{% endfor %}	
		  			</div>
		  			<div class="attendance-week">
		  					<ul class="weekul">
		  						<li><p><span>周一</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周二</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周三</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周四</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周五</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周六</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周日</span><span class="weekdate"></span></p></li>
		  					</ul>
		  					<div class="week-leftbtn">
		  						<i class="layui-icon layui-icon-left"></i>
		  					</div>
		  					<div class="week-rightbtn">
		  						<i class="layui-icon layui-icon-right"></i>
		  					</div>
		  				</div>
		  				<!--表-->
		  				<table class="layui-hide" id="LAY_table" lay-filter="LAY_table"></table>
		  				{% for sub in item.children %}
			  				{% if sub.title=='考勤'%}
							<script type="text/html" id="barDemo">
								<a class="layui-btn layui-btn-xs btn_show_kq" lay-event="attendance">考勤</a>	
							</script>
							{% endif %}
	  					{% endfor %}		

		  		</div>
		  		{% endif %}
		     <!--班级课程表end-->
		    <!--试听课程表-->
		    {% if item.title=='试听课程表' %}
		      <div class="layui-fluid lesson">
		  			<div class="main-title">
		  				<span class="index-moddle-title">试听课程表</span>
		  				<div class="layui-btn layui-btn-xs newbtnleft" id="invitation">只显邀约</div>
		  				{% for sub in item.children %}
			  				{% if sub.title=='查看详情'%}
			  				<div class="table-more-all quick-btn" data-start="tc_date_start" data-end="tc_date_end" data-name="试听课" data-where=""  data-event=""  data-url="/activityManage/auditionClass">查看详情>
				  				<div class="stime"></div>
				  				<div class="stend"></div>
				  			</div>
				  			{% endif %}
			  			{% endfor %} 
		  			</div>
		  			<div class="attendance-week">
		  					<ul class="weekul">
		  						<li><p><span>周一</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周二</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周三</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周四</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周五</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周六</span><span class="weekdate"></span></p></li>
		  						<li><p><span>周日</span><span class="weekdate"></span></p></li>
		  					</ul>
		  					<div class="week-leftbtn">
		  						<i class="layui-icon layui-icon-left"></i>
		  					</div>
		  					<div class="week-rightbtn">
		  						<i class="layui-icon layui-icon-right"></i>
		  					</div>
		  				</div>
		  				<!--表-->
		  				<table class="layui-hide" id="LAY_table_lesson" lay-filter="LAY_table_lesson"></table>
						<script type="text/html" id="barDemolesson">
							{% for sub in item.children %}
								{% if sub.title=='查看签到'%}
				  					<a class="layui-btn layui-btn-xs layui-bg-orange" lay-event="view">查看签到</a>
					  			{% endif %}
					  			{% if sub.title=='添加学员'%}
					  				<a class="layui-btn layui-btn-xs " lay-event="add">添加学员</a>
					  			{% endif %}
				  			{% endfor %} 
						</script>		

		  		</div>
		  		{% endif %}
		    <!--试听课程表end-->
		       <!--快捷操作-->
			{% if item.title=='快捷操作' %}
			<div class="layui-fluid fast">
	 			<div class="main-title"><span class="index-moddle-title">快捷操作</span></div>
	 			<div class="layui-row layui-col-space10 main-modules">
					{% for sub in item.children %}
	  				   {% if sub.type==3 %}
	  				   		<div class="layui-col-md4">
	  				   		<a href="javascript:;" class="quick-btn" data-name="{{ sub.menu }}" data-where="{{ sub.where }}" data-event="{{ sub.event }}" data-url="{{ sub.url }}"><div class="grid-demo kmodules"><p class="kmodules-img"><i class="layui-icon layui-icon-user"></i></p><p class="kmodules-text" title="{{ sub.title }}">{{ sub.title }}</p></div> </a></div>
	  				   {% endif %}
	  				{% endfor %}   
				</div>
				
			</div>
			{% endif %}
			<!--快捷操作end-->
			
			<!--所属区域概况-->
			{% if item.title=='所属区域概况' %}
			<div class="layui-fluid area">
	 			<div class="main-title"><span class="index-moddle-title">所属区域概况</span></div>
	 			<div class="layui-row layui-col-space10 main-modules">
					{% for sub in item.children %}
	  				   {% if sub.type==4 %}
	  				   		<div class="layui-col-md6">
	  				   			<div class="grid-demo modules-area"> <p class="modules-area-img"><i class="layui-icon layui-icon-username"></i><span class="modules-area-name">{{ sub.title }}</span></p><p class="modules-area-text"><i class="text-loading layui-anim-rotate layui-anim  layui-anim-loop layui-icon layui-icon-loading"></i></p></div></div>
	  				   {% endif %}
	  				{% endfor %}  
				</div>
				
			</div>
			{% endif %}
			<!--所属区域概况end-->
			<!--我的漏斗Tmk-->
			{% if item.title=='图表-TMk' %}
			<div class="layui-fluid tmk" data-name="tmk">
	 			<div class="main-title"><span class="index-moddle-title">图表-TMk</span></div>
	 				<div class="chart-search">
			       	   	<div class="chart-search-top">
				       	   	<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<button class="btn">查询</button>
			       	   </div>
			       	   	<div class="main-allbtn-left">
						 	<button  class="btnactive" data-time="today">今天</button> 
							<button data-time="yesterday">昨天</button> 
							<button data-time="week">本周</button> 
							<button data-time="month">本月</button>  
						</div>
						<div class="tmktu" style="margin-left: 10%;"></div>
	 				</div>

			</div>
			{% endif %}
			<!--我的漏斗tmk end-->
			<!--我的漏斗Tmk-->
			{% if item.title=='图表-课程顾问' %}
			<div class="layui-fluid sale" data-name="sale">
	 			<div class="main-title"><span class="index-moddle-title">图表-课程顾问</span></div>
	 				<div class="chart-search">
			       	   	<div class="chart-search-top">
				       	   	<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date bstimes" name="" placeholder="开始时间" lay-verify="required">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<div class="layui-input-inline main-data">
								<input type="text" autocomplete="off" data-type="date" class="layui-input bl_date betimes" name="" placeholder="结束时间">
								<i class="layui-icon layui-iconPosi">&#xe637;</i>
							</div>
							<button class="btn">查询</button>
			       	   </div>
			       	   	<div class="main-allbtn-left">
						 	<button  class="btnactive" data-time="today">今天</button> 
							<button data-time="yesterday">昨天</button> 
							<button data-time="week">本周</button> 
							<button data-time="month">本月</button>  
						</div>
						<div class="tmktu" style="margin-left: 10%;"></div>
	 				</div>

			</div>
			{% endif %}
			<!--我的漏斗tmk end-->
		    {% endfor %}
		</div>
	
	</div>
	

</div>
{% endif %}
{% endblock %} {% block js %}
<script src="/js/plugins/echarts/echarts.js"></script>
<script src="/js/pages/index/index.js"></script>
{% endblock %}
